package com.example.my_project.auto_v2.service.impl;

import com.example.my_project.auto_v2.mapper.ParamEntityMapper;
import com.example.my_project.auto_v2.pojo.JsonResult;
import com.example.my_project.auto_v2.pojo.ParamEntity;
import com.example.my_project.auto_v2.service.IParamService;
import com.example.my_project.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author: chenbo
 * @Description:
 * @Date: Created in 17:40 2018/7/26
 * @Modified By:
 */
public class IParamServiceImpl implements IParamService {

    @Autowired
    private ParamEntityMapper paramEntityMapper;

    @Override
    public JsonResult saveParams(List<ParamEntity> params , Integer path_id) {
        return null;
    }

    @Override
    public JsonResult saveParam(ParamEntity param , Integer path_id ) {
        if (param==null || StringUtils.isEmpty(param.getName()) || path_id == 0 ) {
            return JsonResult.errorMsg("参数缺失！");
        }

        return null;
    }

    @Override
    public JsonResult find(Integer path_id) {
        return null;
    }
}
